//
//  DetailTableViewCell.m
//  Funny
//
//  Created by dllo on 15/10/29.
//  Copyright © 2015年 King. All rights reserved.
//

#import "DetailTableViewCell.h"

@implementation DetailTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.iconImageView = [[UIImageView alloc]init];
        self.iconImageView.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview: _iconImageView];
        
        self.titlelable = [[UILabel alloc]init];
        self.titlelable.font = [UIFont systemFontOfSize:16];
        self.titlelable.backgroundColor = [UIColor colorWithRed:240/255.0 green:240/255.0 blue:240/255.0 alpha:1.0];
        [self.contentView addSubview:_titlelable];
        
        self.rightimageView = [[UIImageView alloc]init];
        self.rightimageView.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:_rightimageView];
    }
    return  self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    
    _iconImageView.frame = CGRectMake(10*W, 10*H, 30*W, 30*H);
    _titlelable.frame = CGRectMake(45*W, 10*H, 290*W, 40*H);
    _rightimageView.frame = CGRectMake(340*W, 10*H, 30*W, 30*H);
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
